import request from '@/utils/request'

// 查询智能排污设备列表
export function listPollutantDevice(query) {
  return request({
    url: '/app/PollutantDevice/list',
    method: 'get',
    params: query
  })
}

// 查询智能排污设备详细
export function getPollutantDevice(id) {
  return request({
    url: '/app/PollutantDevice/' + id,
    method: 'get'
  })
}

// 新增智能排污设备
export function addPollutantDevice(data) {
  return request({
    url: '/app/PollutantDevice',
    method: 'post',
    data: data
  })
}

// 修改智能排污设备
export function updatePollutantDevice(data) {
  return request({
    url: '/app/PollutantDevice',
    method: 'put',
    data: data
  })
}

// 删除智能排污设备
export function delPollutantDevice(id) {
  return request({
    url: '/app/PollutantDevice/' + id,
    method: 'delete'
  })
}
